#include <stdio.h>
int main(){
    int a[2]={0,1},sum=0;
    for(int i=0;i<2;i++){
        printf("交换前值为");
        printf("%d",a[i]);
    }
    printf("\n");
    for(int i=0;i<2;i++){
        sum = a[i+1];
        a[i+1] = a[i];
        a[i] = sum;
        printf("交换后值为");
        printf("%d",a[i]);
    }
    printf("\n");
    return 0;
}